import { useEffect } from 'react'
import { useState } from 'react'
import './App.css'
import Model from './components/common/model'

function App() {
const [visible,setVisible]=useState(false)
useEffect(()=>{

})
const onModelClose=(show)=>{
  
setVisible(!show)
}
const onModelConfirm=(show)=>{
  setVisible(!show)
}
  return (
    <div className="App">
    <Model 
      visible={visible}
      title='登录'
      onClose={onModelClose}
      onConfirm={onModelConfirm}

    >
    <h3>这里是自定义标签</h3>  
    <p>!!!!!</p>
    </Model>
    <button onClick={()=>setVisible(true)}>click here</button>
    </div>
  )
}

export default App
